import Vue from 'vue';
export default {
    //登录
    userLogin (data) {
        return Vue.http.post('/userlogin',data,Vue.httpJsonConfig);
    },
    //菜单列表
    listbypermission (data) {
        return Vue.http.post('/permission/listbypermission',data,Vue.httpJsonConfig);
    },
    //新增菜单
    addPermission (data) {
        return Vue.http.post('/permission/addpermission',data,Vue.httpJsonConfig);
    },
    //编辑菜单
    editPermission (data) {
        return Vue.http.post('/permission/editpermission',data,Vue.httpJsonConfig);
    },
    //删除菜单
    delPermission (data) {
        return Vue.http.post('/permission/deletepermission',data);
    },
    //角色管理
    listbyrole (data) {
        return Vue.http.post('/role/listbyrole',data,Vue.httpJsonConfig);
    },
    //新增角色
    addrole (data) {
        return Vue.http.post('/role/addrole',data,Vue.httpJsonConfig);
    },
    //编辑角色
    editrole (data) {
        return Vue.http.post('/role/editrole',data,Vue.httpJsonConfig);
    },
    //删除角色
    deleterole (data) {
        return Vue.http.post('/role/deleterole',data);
    },
    //角色授权
    authRole (data) {
        return Vue.http.post('/role/roleauthorizepermission',data,Vue.httpJsonConfig);
    },
    //用户列表
    listbyuserinfo (data) {
        return Vue.http.post('/userinfo/listbyuserinfo',data,Vue.httpJsonConfig);
    },
    //新增用户
    adduserinfo (data) {
        return Vue.http.post('/userinfo/adduserinfo',data,Vue.httpJsonConfig);
    },
    //编辑用户
    edituserinfo (data) {
        return Vue.http.post('/userinfo/edituserinfo',data,Vue.httpJsonConfig);
    },
    //删除用户
    deleteuserinfo (data) {
        return Vue.http.post('/userinfo/deleteuserinfo',data);
    },
    //机构管理
    listbyorgan (data) {
        return Vue.http.post('/organ/listbyorgan',data,Vue.httpJsonConfig);
    },
    //登录账号管理
    listbyadminuser (data) {
        return Vue.http.post('/adminuser/listbyadminuser',data,Vue.httpJsonConfig);
    },
    //新增账号
    addadminuser (data) {
        return Vue.http.post('/adminuser/addadminuser',data,Vue.httpJsonConfig);
    },
    adminuserauthorizerole (data) {
        return Vue.http.post('/adminuser/adminuserauthorizerole',data,Vue.httpJsonConfig);
    },
    adminuserbinduserinfo (data) {
        return Vue.http.post('/adminuser/adminuserbinduserinfo',data,Vue.httpJsonConfig);
    },

};
